<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Mixed</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="language.types.callable.html">« Callback / Callable 类型</a></li>
      <li style="float: right;"><a href="language.types.void.html">Void »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="language.types.html">类型</a></li>
    <li>Mixed</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="language.types.mixed" class="sect1">
 <h2 class="title">Mixed</h2>

 <p class="para">
  <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> 类型接受每个值。等同于<a href="language.types.type-system.html#language.types.type-system.composite.union" class="link">联合类型</a>
  
  <code class="literal">object|resource|array|string|float|int|bool|null</code>。自 PHP 8.0.0 起可用。
 </p>

 <p class="para">
  在类型理论中，<span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> 是顶级类型。这意味着其它所有类型都是它的子类型。
 </p>

</div></div></div></body></html>